package com.anta.it.hr.devtools.core.config;

import org.springframework.cloud.netflix.ribbon.RibbonClients;
import org.springframework.context.annotation.Configuration;

/**
 * 替换全局默认的负载均衡规则，也可以指定某个服务的负载均衡规则
 * @author wangxiaoxian
 * @since 2021/7/7
 */
@Configuration
@RibbonClients(defaultConfiguration = RibbonRuleConfig.class)//必须由外部引入负载均衡配置类，否则会生成单例，导致请求转发错乱
//@ConditionalOnProperty(name = "ribbon.dev-mode", havingValue = "true", matchIfMissing = true)
public class RibbonConfig {
}
